<extend name="./public/frame.html"/>
<block name="content">
	<style>
		.layui-form-label{width: 10%;}
		.layui-input-block{margin-left: 12%;}
	</style>
	<h2 style="text-align: center;">平台备案</h2>
	<form class="layui-form layui-form-pane1" method="post" >
		<div class="layui-form-item">
			<label class="layui-form-label"><i style="color:red;font-size: 28px;vertical-align: bottom;">*</i>汽车经营许可证号</label>
			<div class="layui-input-inline">
			  <input type="text" name="licence" value="{$data.licence}" class="layui-input">
			</div>
			<div class="layui-form-mid layui-word-aux">平台经营许可证编号</div>
		</div>
		<div class="layui-form-item">
			<label class="layui-form-label"><i style="color:red;font-size: 28px;vertical-align: bottom;">*</i>注册地行政区代码</label>
			<div class="layui-input-inline">
			  <input type="text" name="adminCode" value="{$data.adminCode}" class="layui-input">
			</div>
			<div class="layui-form-mid layui-word-aux">注册地行政区代码</div>
		</div>
		<div class="layui-form-item">
			<label class="layui-form-label"><i style="color:red;font-size: 28px;vertical-align: bottom;">*</i>服务机构名称</label>
			<div class="layui-input-inline">
			  <input type="text" name="agency" value="{$data.agency}" class="layui-input">
			</div>
			<div class="layui-form-mid layui-word-aux">服务机构名称</div>
		</div>
	
		<div class="layui-form-item">
			<label class="layui-form-label"><i style="color:red;font-size: 28px;vertical-align: bottom;">*</i>服务机构代码</label>
			<div class="layui-input-inline">
			  <input type="text" name="agencyCode" value="{$data.agencyCode}" class="layui-input">
			</div>
			<div class="layui-form-mid layui-word-aux">服务机构代码</div>
		</div>
		<div class="layui-form-item">
			<label class="layui-form-label"><i style="color:red;font-size: 28px;vertical-align: bottom;">*</i>服务机构具体地址</label>
			<div class="layui-input-inline">
			  <input type="text" name="agencyAddress" value="{$data.agencyAddress}" class="layui-input">
			</div>
			<div class="layui-form-mid layui-word-aux">服务机构具体地址</div>
		</div>
		<div class="layui-form-item">
			<label class="layui-form-label"><i style="color:red;font-size: 28px;vertical-align: bottom;">*</i>服务机构负责人姓名</label>
			<div class="layui-input-inline">
			  <input type="text" name="agencyPeople" value="{$data.agencyPeople}" class="layui-input">
			</div>
			<div class="layui-form-mid layui-word-aux">服务机构负责人姓名</div>
		</div>
		<div class="layui-form-item">
			<label class="layui-form-label"><i style="color:red;font-size: 28px;vertical-align: bottom;">*</i>服务机构负责人联系方式</label>
			<div class="layui-input-inline">
			  <input type="text" name="tel" value="{$data.tel}" class="layui-input">
			</div>
			<div class="layui-form-mid layui-word-aux">11字符串</div>
		</div>
		<div class="layui-form-item">
			<label class="layui-form-label"><i style="color:red;font-size: 28px;vertical-align: bottom;">*</i>服务机构管理人姓名</label>
			<div class="layui-input-inline">
			  <input type="text" name="agencyManagerName" value="{$data.agencyManagerName}" class="layui-input">
			</div>
			<div class="layui-form-mid layui-word-aux">64字符串</div>
		</div>
		<div class="layui-form-item">
			<label class="layui-form-label"><i style="color:red;font-size: 28px;vertical-align: bottom;">*</i>服务机构管理人联系号码</label>
			<div class="layui-input-inline">
			  <input type="text" name="managerTel" value="{$data.managerTel}" class="layui-input">
			</div>
			<div class="layui-form-mid layui-word-aux">11字符串</div>
		</div>
		<div class="layui-form-item">
			<label class="layui-form-label"><i style="color:red;font-size: 28px;vertical-align: bottom;">*</i>行政文书送达邮寄地址</label>
			<div class="layui-input-inline">
			  <input type="text" name="postalAddress" value="{$data.postalAddress}" class="layui-input">
			</div>
			<div class="layui-form-mid layui-word-aux">512</div>
		</div>
		<div class="layui-form-item">
			<label class="layui-form-label"><i style="color:red;font-size: 28px;vertical-align: bottom;"></i>服务机构紧急联系电话</label>
			<div class="layui-input-inline">
			  <input type="text" name="agencyEmergencyTel" value="{$data.agencyEmergencyTel}" class="layui-input">
			</div>
			<div class="layui-form-mid layui-word-aux">11字符串</div>
		</div>
		<div class="layui-form-item">
			<label class="layui-form-label"><i style="color:red;font-size: 28px;vertical-align: bottom;">*</i>服务机构设立日期</label>
			<div class="layui-input-inline">
			  <input type="text" name="agencyCreateDate" value="{$data.agencyCreateDate}" class="layui-input">
			</div>
			<div class="layui-form-mid layui-word-aux">yyyMMdd 8字符串</div>
		</div>

		
		<div class="layui-form-item">
			<div class="layui-input-block">
				<button class="layui-btn" layer-submit id="submits">立即提交</button>
	
			</div>
		</div>
	</form>

	<script>
		layui.use(['laydate', 'upload','form'], function () {
			var laydate = layui.laydate
				,upload = layui.upload
				,form = layui.form
			;
			upload.render({
				elem: '#test3'//这个就等同于点击
				,url: '/admin/Upload/base64EncodeImage'
				,before: function(obj){
				
				}
				,done:  function(res){ //上传后的回调
					console.log(res)		
					if(res.status == 1){
						$("#demo3").attr('src',res.base_img);
						$("#legalIdCardPhoto").val(res.base_img);
					
					  
					}else{
						layer.msg(res.msg,{'icon':2});
					}
				},
				error: function(e){
					console.log(e)
				  //layer.msg('上传失败');
				 
				}
			}); 
		
		
		});

	</script>
</block>
